<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "tb_smscode".
 *
 * @property integer $id
 * @property string $mobile
 * @property string $code
 * @property integer $sen_time
 * @property integer $use_time
 * @property integer $status
 */
class Smscode extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tb_smscode';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mobile', 'code'], 'required'],
            [['sen_time', 'use_time', 'status'], 'integer'],
            [['mobile', 'code'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'mobile' => 'Mobile',
            'code' => 'Code',
            'sen_time' => 'Sen Time',
            'use_time' => 'Use Time',
            'status' => 'Status',
        ];
    }
}
